﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace Zentrum.Storage
{
	public static partial class StorageManager
	{
		public static bool CanRead(Uri uri)
		{
			var accessor=Get(uri);
			return accessor.CanRead;
		}

		public static Stream OpenRead(Uri uri)
		{
			var accessor=Get(uri);
			return accessor.OpenRead(uri);
		}

		public static bool CanWrite(Uri uri)
		{
			var accessor=Get(uri);
			return accessor.CanWrite;
		}

		public static Stream OpenWrite(Uri uri)
		{
			var accessor=Get(uri);
			return accessor.OpenWrite(uri);
		}

		public static bool CanExists(Uri uri)
		{
			var accessor=Get(uri);
			return accessor.CanExists;
		}
		
		public static bool Exists(Uri uri)
		{
			var accessor=Get(uri);
			return accessor.Exists(uri);
		}
	}
}
